<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id='hello'>
        <select v-model="fruit">
            <option value="苹果">苹果</option>
            <option value="香蕉">香蕉</option>
            <option value="瓜皮">瓜皮</option>
        </select>
        <!-- option的value传到data里 ，data里的数据再用mustache显示 -->
        <h5 id="h5">你选择的是{{fruit}}</h5>

        <select v-model="fruits" multiple>
            <option value="苹果">苹果</option>
            <option value="香蕉">香蕉</option>
            <option value="瓜皮">瓜皮</option>
        </select>
        <h5>按住ctrl多选 你选择的是{{fruits}}</h5>
    </div>
    <script src="../vue.js"></script>
    <script>
        const vueApp = new Vue({
            el: '#hello',
            data: {
                fruit:'',
                fruits:[]
            },
        })
    </script>

</body>

</html>